Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update handling of __JETBRAINS_IDE__ macro #1017

Merged
merged 1 commit into from
Sep 7, 2017

Conversation

fastasturtle
Copy link
Contributor

  1. Use it to conditionally define CATCH_INTERNAL_CONFIG_COUNTER, not
    CATCH_CONFIG_COUNTER, as __JETBRAINS_IDE__ is similar to
    compiler-provided macros, not to user-provided ones.

  2. Since __COUNTER__ will work starting with CLion 2017.3, use it
    when possible (and hopefully remove this check altogether
    at some point).

Description

CLion will support __COUNTER__ macro properly soon (https://youtrack.jetbrains.com/issue/CPP-820)

1. Use it to conditionally define CATCH_INTERNAL_CONFIG_COUNTER, not
   CATCH_CONFIG_COUNTER, as __JETBRAINS_IDE__ is similar to
   compiler-provided macros, not to user-provided ones.

2. Since __COUNTER__ will work starting with CLion 2017.3, use it
   when possible (and hopefully remove this check altogether
   at some point).
@horenmar
Copy link
Member

horenmar commented Sep 7, 2017

Looks reasonable enough, but I am going to blame you if CLion 2017.3 comes out and it doesn't support __COUNTER__ 😉

@horenmar horenmar merged commit 9c07718 into catchorg:master Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants